﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Maticsoft.Web.Admin.Shopping
{
    public partial class CommentDetail : PageBase
    {
        string id = string.Empty;
        protected Model.Comments model = null;
        protected Model.Products proModel = null;
        protected Model.Members memModel;
        protected void Page_Load(object sender, EventArgs e)
        {
            Check("shopping", "read");

            if (!string.IsNullOrEmpty(Request.QueryString["id"]))
            {
                id = Request.QueryString["id"];
            }
            GetData();
        }

        protected void GetData()
        {
            BLL.Comments bll = new BLL.Comments();
            model = bll.GetModel(int.Parse(id));

            BLL.Products proBll = new BLL.Products();
            proModel = proBll.GetModel((int)model.ProductId);

            BLL.Members memBll = new BLL.Members();
            memModel = memBll.GetModel((int)model.UserId);
        }
    }
}